The iPhone assembler Foxconn said Trump’s trade war is pushing companies to expand supply chains to other hubs around the world.