El Salvador and Panama have declared their highest-level alerts nationwide as the effects of El Niño threaten economies and residents' safety.