The Office for National Statistics said the rate of unemployment rose to 5.1 in the three months to October – the highest since early 2021.