Longitudinal pathways between mental health difficulties and academic performance during middle childhood and early adolescence