Hyperscaling violation and the shear diffusion constant