The dynamic interplay between mental health difficulties and the family environment in early adolescence