Donald Trump drew boos from the crowd and an attack from a rival at a raucous first Republican presidential debate.