Vanderbilt keeps up defense, hangs on at South Carolina