Non-Markovian dynamics of system-reservoir entanglement