Tools having a percussion-and-rotation mode