Unraveling the cognitive patterns of Large Language Models through module communities