A multi-agent model of hierarchical decision dynamics