The government said there is a “worrying trend” of abuse that uses digital technology to harass people playing sports.