Motor effect in electron transport through a molecular junction with torsional vibrations