When rain is present, a 5 GHz signal will indeed deliver a shorter range than a 2.4 GHz signal. As the frequency increases, the size of the raindrops approach that of a theoretically perfect antenna. At that point, the transmitted power is effectively just warming the rain.