Evaluating Cognitive Maps and Planning in Large Language Models with CogEval