When Xi Jinping came to power a decade ago, China had just overtaken Japan to become the world's second largest economy.