who was the first us president from the republican party?