A phenomenological theory of the pseudogap state