The former M&S boss will lead the struggling supermarket chain amid falling sales and a search for a new CEO.