Swimming and pumping of rigid helical bodies in viscous fluids