Hierarchical structure and memory retrieval mechanisms in agreement attraction