The epidemiology of multimorbidity in primary care: a retrospective cohort study