All of Thomas Cook's 555 stores are being bought by rival company Hays Travel in the wake of its collapse.