The cosmological free-free signal from galaxy groups and clusters