Jim Chalmers argues energy and social care investments would not compromise retirement savings