The home-organizing giant struggled with a pullback in store sales and increased competition from discounters.