Personally if after testing the cables are OK, then I'd replace any switch, socket or fitting that had been in contact with the water,,,,
But surely this should be an insurance claim!
Most insurance companies will pay for the damage caused by a leak, but not to fix the leak itself