Chinese-owned video platform TikTok has sealed a deal to create a joint venture with American investors. The move allows the popular social app to dodge the threat of being banned in the US.