A cohort study of influences, health outcomes and costs of patients’ health-seeking behaviour for minor ailments from primary and emergency care settings