TikTok has become one of the world’s most popular apps by serving up a steady beat of lip-syncing videos and viral memes. But behind the scenes the company, owned by one of China’s biggest tech firms, is also scooping up massive amounts of data on its users and tracking their every move.