which was the first american president who belongs to the republican party?