Creating and sharing sexually explicit "deepfakes" will become a criminal offence in Britain, the government said.