Effect of residual water on superconductivity in (La1−xSrx)2CuO4−δ