Queen Elizabeth II is using her annual Christmas message to pay tribute to the way the cities of London and Manchester pulled together after extremist attacks earlier this year.