Theory of thermal motions in anharmonic crystals