Water and an escaping helium tail detected in the hazy and methane-depleted atmosphere of HAT-P-18b from JWST NIRISS/SOSS