Risk factors for acute exacerbations of COPD in a primary care population: a retrospective observational cohort study