Tree Training: Accelerating Agentic LLMs Training via Shared Prefix Reuse