Herschel/HIFI measurements of the ortho/para ratio in water towards Sagittarius B2(M) and W31C