The state energy firm Saudi Aramco said it would increase investment after profits more than doubled in 2021.