Attainment gap between poor pupils and their peers hits 10-year high