Waterford wins CIAC class M softball title