Factors associated with potentially missed acute deterioration in primary care: cohort study of UK general practices