British energy company BP has confirmed it is to slash spending on green ventures and up its oil and gas production.