More than 30 warships sailed through Sydney Harbour to mark the 125th anniversary of the Royal Australian Navy.