Higgs bundles and the real symplectic group