Amazon plans to shut Amazon Go and Fresh stores, shifting focus to Whole Foods and expanding its online grocery business.