Motion-capture technology reveals that the body falls forward and sideways as we walk, and the feet come down to restore balance. Karen Hopkin reports