The entitlement of children to a high-quality education is at risk because of the widening pay gap between teaching and other professions, according to research commissioned by the NASUWT, the largest teachers’ union.