At its annual investor conference in San Francisco in May 2014, with oil trading at $102 a barrel, Wells Fargo & Co. boasted that in just two years it had almost doubled its energy exposure and seized the title of Wall Street’s top oil and gas banker.