We trained militant groups against India: Musharraf