Chinese-owned social media app TikTok has been banned on all government devices.