TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioning