Epidemiology and impact of multimorbidity in primary care: a retrospective cohort study