Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers