US general merchandise retailer Sears saw second-quarter losses narrow on the back of lower costs.