Phase separation, pseudogap and impurity scattering in the HTS cuprates