Monte Carlo simulation of a two-dimensional anisotropic plane-rotator model