The prime minister told the BBC that Labour politicians courting the comedian a decade ago had not been aware of his crimes.