When to Replan? An Adaptive Replanning Strategy for Autonomous Navigation using Deep Reinforcement Learning