Lagrangian formulation of a spinning test particle in a curved space-time with torsion