Exact results in the three-dimensional Landau-Ginzburg model of magnetic inhomogeneities in uniaxial ferromagnets: I. Continuous transitions