Bed Bath & Beyond settles a months-long dispute with a group of activist investors