China’s economy grew by 8.1% in 2021 but Beijing faces pressure to shore up activity after an abrupt slowdown in the second half.