Former CIA Director John Brennan has blasted Donald Trump as a "disgraced demagogue" after he celebrated the firing of Andrew McCabe.