Cosmological implications of ROSAT observations of groups and clusters of galaxies