A husband who drugged and raped his wife for 20 years told a court that he had 'a compulsion' which he could not control.