There are 24,000 teachers without formal teaching qualifications in England's state schools, a report says.