Influence of External Information on Large Language Models Mirrors Social Cognitive Patterns