Macy’s to invest $400 million to renovate Herald Square flagship