Dan Rather resigns as anchor, to stay on as correspondent