Boys are outperforming girls across key maths and science disciplines as overall performance plateaus.