Virginia withstands a late Hampton charge to claim the victory