Assessing the influence of attractor-verb distance on grammatical agreement in humans and language models