which president of the us was first to belong to the republican party?