Host galaxies of merging compact objects: mass, star formation rate, metallicity, and colours