THEORY OF SPONTANEOUSLY BROKEN GAUGE FAMILY SYMMETRY AND ITS COSMOLOGICAL CONSEQUENCES