Cruz exits Republican race for president