Text this: How far back do we need to look to capture diagnoses in electronic health records? A retrospective observational study of hospital electronic health record data