Theory of the elastic anomalies in the invar alloy Fe3Pt