Effect of patients seeing a general practitioner in accident and emergency on their subsequent reattendance: cohort study