Ralph C. Martin, a former Suffolk district attorney who has spent the last decade as Northeastern University’s general counsel, will retire in December.