Barclays raised its provision for potential foreign-exchange settlements to $1.92 billion, leading it to report a full-year net loss, but said an effort to shrink and restructure its business is starting to pay off.