Alarm symptoms and identification of non-cancer diagnoses in primary care: cohort study