Congressman resigns following sex allegations