CNN is accusing US President Donald Trump of encouraging violence against journalists, after he tweeted a mock video where he attacks the network.