A neural model of frontostriatal interactions for behavioural planning and action chunking