Biodiversity regulates ecosystem predictability