TGI Fridays secures rescue deal - but with loss of more than 1,000 jobs