Asynchrony among local communities stabilises ecosystem function of metacommunities