Grand unified theories and the lepton number of the Universe