India hold their nerve to edge Pakistan in Asia Cup thriller