‘Walk away from terrorism’ for ‘good’ ties, Modi tells Pakistan