Viscosity and dissipative hydrodynamics from effective field theory