Female secondary headteachers earn £3,908 less a year on average than their male counterparts, an analysis reveals