A learning scheme for neural networks in the brain to predict and control body movement