Your guests probably had some detergent residue in their swimsuits and or soap/shampoo residue on them. This happened to me recently and is not unusual. It will eventually dissipate. You can use defoamer if the foam is bothering you. It doesn't take much detergent to cause foam.