Royal Navy sailors have performed Changing the Guard outside Buckingham Palace for the first time in the ceremony's 357-year history.