A dramatic shift away from traditional office supplies is forcing Staples to shrink its physical footprint fast.