Gravar-mail: Prioritized memory access explains planning and hippocampal replay