Information processing, dimensionality reduction and reinforcement learning in the basal ganglia