Benchmarking and Understanding Compositional Relational Reasoning of LLMs