Capello resigns