Attracting and retaining foreign investment was at the top of Chinese President Xi Jinping's agenda, as he promised a better investment climate in China and addressed the concerns of US business leaders at a time when the Chinese economy is losing steam.