Association between lung function and exacerbation frequency in patients with COPD