A learning rule for place fields in a cortical model: Theta phase precession as a network effect