The move follows an outcry over reports of Grok users manipulating images of women and children in order to sexualise them.