Schools turn to handwritten exams as AI cheating surges