Mechanisms underlying cortical activity during value-guided choice