A study of the H I gas fractions of galaxies at z ∼ 1