Social media app TikTok has been banned on government electronic devices including HMRC phones, but it will be accessible for investigation work