As the Olympics come to a close, Fiona Macdonald looks at a new book and exhibition featuring images that have celebrated the human body in motion for almost two centuries.