Doctors' consultations with children and their parents: a model of competencies, outcomes and confounding influences