'Act like a woman' to get ahead at work, says leading headteacher