Factors associated with attendance at primary care appointments after discharge from hospital: a retrospective cohort study | Synapse