Quantifying the impact of pre-existing conditions on the stage of oesophagogastric cancer at diagnosis: a primary care cohort study using electronic medical records