Meta Platforms has banned TikTok parent company ByteDance from advertising across its apps in seven countries, including the United States and Canada, escalating the competition between the two tech giants.