Ofcom said the change would make it harder for strangers to contact children on the image-sharing social media platform, one it considers among the largest and most popular online services used by children in Britain.