Schools minister was questioned by MPs on teacher recruitment, retention, workload and flexible working