The U.S. Department of Justice on Thursday sued Barclays for fraud in the sale of mortgage securities in the run-up to the financial crisis.