The Duke of Gloucester made a rare appearance with Princess Anne as the royals headed to France to mark the 110th anniversary of the Battle of the Somme