Bed, Bath and Beyond tries to avoid bankruptcy with $1bn financing plan