Path Integration Is Necessary for Flexible Goal-Directed Navigation