Department store chain House of Fraser has finally sealed a deal to be bought by a consortium led by investor Baugur.