The huge diversity of frogs we see today is mainly a consequence of the asteroid strike that killed off the dinosaurs, a study suggests.