Phonon-mediated tuning of instabilities in the Hubbard model at half-filling