Cognitive Mapping and Planning for Visual Navigation