Thinking Fast and Slow in Large Language Models