BP is to ramp up its oil and gas production while cutting its investments in renewables.