Structure formation simulations with momentum exchange: alleviating tensions between high-redshift and low-redshift cosmological probes