Banking giant Wells Fargo has agreed to pay $85 million to settle a three-year class-action legal battle in California over claims that it held fake job interviews to meet diversity targets.