Linklaters refused to represent Barclays in connection with a controversial $3bn loan from Qatar at the height of the 2008 financial crisis amid concerns over its legality, papers filed at the High Court have claimed.