Hampshire all-rounder Keith Barker has described the past year as "very tough" after he had to take a year away from the sport following a positive drugs test.