Collision-model-based approach to non-Markovian quantum dynamics