TikTok has signed a deal to sell its U.S. business to three American investors ensuring the popular social video platform can continue operating in the United States.