Viscous cosmology in f(T) gravity