Republican candidates have clashed over Iraq, 9/11 and issues of trust in the latest presidential debate.