Global ecosystems are at risk of losing carbon storage ability, study says