MSU professor resigns amid allegations of sexual harassment; University was set to terminate him