African elephants living in the wild sleep for the shortest time of any mammal, according to a study.