A mechanistic multi-area recurrent network model of decision-making