Viscosity of neutron star matter and $r$-modes in rotating pulsars