Primary school teacher Nigel Leat, who filmed himself abusing girls in his classroom, has been told he faces a lengthy prison sentence.