Coughlin resigns as giants coach