Ab initio investigation of the anomalous phonon softening in FeSi