ARIES: Autonomous Reasoning with LLMs on Interactive Thought Graph Environments