A girls' school is set to welcome boys for the first time in a bid to secure its future