We did train militant groups to fight against India: Musharraf