Ex-Ripon Grammar School matron loses unfair dismissal claim