Rayleigh scattering in the transit spectrum of HD 189733b