Parental and child time investments and the cognitive development of adolescents