Structural Phase Transitions Induced by a Pseudo-Jahn-Teller Effect