Thomas Cook's 178-year existence has come to an end after the British travel firm struggled to find private investment to keep it afloat, potentially affecting thousands of holidaymakers.