New York Gov. Andrew M. Cuomo (D) announced his resignation Tuesday in an effort to head off a looming impeachment effort in the state Assembly, a precipitous fall triggered by a state investigation that found he sexually harassed 11 women and oversaw an unlawful attempt to exact retribution against one of his accusers.