The former Defence Secretary has told the Commons he is sorry for breaking the ministerial code through his links to Adam Werritty.