The cash-strapped office rental firm has accepted a bailout deal from Japanese backer Softbank.