Harvard president resigns after testimony backlash