Fluctuation theory of the resonance enhancement of Rayleigh scattering in absorbing media