Pairing-induced localization of the particle continuum in weakly bound nuclei