Deep reinforcement learning models the emergent dynamics of human cooperation