Check for water ingress on the rear light clusters and their connectors/bulb holders.
If still no joy take out brake light bulbs and see if it fixes the issue, it's sounds like water ingress across either the light board tracks or connector etc, but 99.99% sure you'l find the problem at one of the rear lights.
tabetha