Anharmonic phonons and central peaks at structural phase transitions