Republicans attack each other in bad tempered third presidential debate