Constraints on the Optical Depth of Galaxy Groups and Clusters