Headache and migraine in primary care: consultation, prescription, and referral rates in a large population