Gas injection into a moist porous medium with the formation of a gas hydrate