Prince William and Princess Kate arrived alongside their three children for the service in Scotland.