On the divisor class group of a two-dimensional local ring and its form ring