Effect of viscosity on dispersion of capillary–gravity waves