The mighty megafauna of the last Ice Age, including the woolly mammoths, largely became extinct because of rapid climate-warming events, a study says.