The APEC summit in Peru concluded with Xi Jinping emphasising globalisation as US trade policies shift under President Trump.