q-Deformed character theory for infinite-dimensional symplectic and orthogonal groups