The former chief executive of Barclays, John Varley, has been acquitted of charges of conspiracy to commit fraud.