I had this same problem a couple years back on my 05 Outback. The plug-in assembly was sitting in the bottom of my bilge and also go water in the connection. I simply disconnected it and dried it out real good. When I reassembled it I zip tied it to the wiring harness running along the inside edge of the bilge area which is above the floor of the boat. Have not had the problem since.
Pat L
2005 Outback
Leonardtown, Maryland