Theta-modulation drives the emergence of connectivity patterns underlying replay in a network model of place cells