The popular social media app TikTok has been temporarily banned from the phones and other personal devices of European Union employees as a cybersecurity measure.