The number of taxis found to have dangerous or major defects has been described as "frightening".