Dark Matter Cosmology with Varying Viscosity: a Possible Resolution to the S_8 Tension