Queen Elizabeth II has expressed her thanks for all the "support and kindness" shown following the death of her husband,