TikTok, which is owned by China’s ByteDance, has inked an agreement to sell a majority of its US business to three investors.