The replica-symmetric free energy for Ising spin glasses with orthogonally invariant couplings