China warns of necessary measures to safeguard interests of its companies after US bans downloads of TikTok and WeChat.