Causal Navigation by Continuous-time Neural Networks