Who was the first US president to resign from office?