Memorial services have been held around the UK to remember those who have given their lives defending their country.