El Salvador prosecutor says he will investigate allegations of government pacts with gangs