Towards a Psychology of Machines: Large Language Models Predict Human Memory