Antibiotic prescribing before and after the diagnosis of comorbidity: a cohort study using primary care electronic health records