Secondary school is making children less happy – but building confidence by age 11 could help that