On the cuspidal cohomology of arithmetic subgroups of $\mathrm{SL}(2n)$ and the first Betti number of arithmetic $3$-manifolds