On the cohomology groups of local systems over Hilbert modular varieties via Higgs bundles