Almost commuting orthogonal matrices