Jeremy Corbyn has defended promoting Kelvin Hopkins, despite knowing he had been reprimanded for inappropriate behaviour.