Bed, Bath & Beyond invests 40% of capex in digital efforts