Groups and clusters of galaxies