ByteDance agrees to dilute its stake as Oracle and other investors join a new US-controlled TikTok entity.