Variational solution of the problem of anharmonic vibrations of molecules in the central force field