Prove that if an upper triangular matrix is orthogonal, then it must be a diagonal matrix.