Switching to renewable energy could save trillions – study