Family processes and the competence of adolescents and primary school children