Travel firm Thomas Cook holds talks to avoid a collapse