MUSTARD: Mastering Uniform Synthesis of Theorem and Proof Data