New research from South Africa links a mass extinction event with water scarcity