Pakistan to act if Kabul gets too close to India: Musharraf