The WISSH quasars project : IX. Cold gas content and environment of luminous QSOs at z ∼2.4-4.7