Influence of damping on the motion of floating bodies