If you disconnected the battery it usually needs a short drive & steering lock to lock (with a 5-10sec hold each way) to reset the ESP
You may well have a faulty ABS sensor/ring due to the heavy rain or a bit of **** etc. or could just be coincidental
Try a short drive when it's all dried out and if it doesn't clear get it scanned for faults