Prince Philip has formally handed over his position as Colonel-in-Chief of the Rifles Regiment to the Duchess of Cornwall.