The onetime city manager of a wealthy San Francisco suburb has resigned from her role less than two months after she was arrested following a bizarre incident aboard a yacht at the city’s marina.