British Prime Minister Keir Starmer has warned technology companies to stop children sharing explicit images on their devices or face a change to the law.