Underwriters shrink away from coal and tar sands projects under scrutiny from investors, regulators and campaigners