Intergenerational transmission of mental health: the mediating effects of offspring self-esteem and attachment