Phase Transitions and Soft Librational Modes in Cubic Crystals