Harvard president to resign