Energy giant BP has reported record annual profits as it scaled back plans to reduce the amount of oil and gas it produces by 2030.