Evolution of the water regime of Phobos