LEMMA: Bootstrapping High-Level Mathematical Reasoning with Learned Symbolic Abstractions