Emergence of a metastable pointer-state basis in non-Markovian quantum dynamics