Official figures showed the UK economy shrank for the second month running in October, contracting by 0.1 following a 0.1 decline in September.