Staples has become the second major chain to announce the mass closing of stores this week, providing the latest evidence of how the retail landscape is being remade by shifts in American shopping habits.