Sydney teacher cleared of sex charges