Torsion line bundles and branes on the Hitchin system