Ah yes, definitely sounds like dehydration was a factor then... sounds like you well aware of the solutions in order to prepare for the next event :-)
I've had a groin/hip adductor issue for a few months now, it appeared last November .I've spent the last 3 months with rest and physio treatment and stretching and strength exercises, and I am now finally on the mend (fingers crossed). Looking forward to finally getting back into a more normal training routine... and I already have a Half-marathon booked on October later this year!