Top-down regulation of communities and ecosystem function under climate change