Stan dumped heavy rains over Central America last week , causing flooding and mudslides that killed at least 31 people in El Salvador and four others in neighboring Guatemala .