Interviews show that a seemingly relentless string of professional and personal troubles led to Sarah Palin’s surprise resignation as governor of Alaska.