The intergenerational transmission of cognitive skills