Cognitive Modeling with Scaffolded LLMs: A Case Study of Referential Expression Generation