IDEA:Enhancing the Rule Learning Ability of Language Agents through Induction, Deduction, and Abduction