Uncertainty-based competition between prefrontal and striatal systems for behavioural control