Using less detergent will help solve this condition. Test by running washer through cycle without soap. This is especially true if you have soft water. Check to see if the washer is overloaded or out of balance. Be sure to sort not only by color and fabric but by weight, i.e. wash heavy items with similar heavy items.
Check fill hoses for loose connections.
Black rubber washer inserts are included in the installation package. If these are not installed, there will be water leaking from the fill hoses at the faucet, or at the washer connection. Check house standpipe. Water may be backing up and spilling out of the standpipe as the washer is draining. The standpipe is the drain line where your washer drain hose is connected.