Study says inaction on climate change could cost trillions