STOUGHTON — A Massachusetts high school teacher and coach has resigned amid an investigation into an alleged sexual relationship with a former student.Stoughton schools superintendent Marguerite Rizzi said Wednesday the Stoughton High School teacher resigned after being served with an "intention to dismiss" notice by the district, the first step in the firing process.Rizzi did not release the teacher's name.