LLMs Are Prone to Fallacies in Causal Inference