Forests are becoming less resilient because of climate change