Jellyfish galaxies with the IllustrisTNG simulations – I. Gas-stripping phenomena in the full cosmological context