Ghani accuses Pakistan of waging ‘undeclared war’