PHASE TRANSITIONS IN THE EARLY UNIVERSE: THEORY AND OBSERVATIONS