The former chief economist of the International Monetary Fund has told the BBC a slowdown in China is the greatest threat to the global economy.