Increasing numbers of university students are taking up school internships to get a taste for teaching, new figures show.