The energy giant says pulling out of Russian oil and gas activities had cost the firm $3.9bn.