The Princess Royal has unveiled a plaque to commemorate those who have died in armed conflict since the Second World War.