Malaysia's immigration department has detained close to 800 unregistered foreigners, including at least 377 Bangladeshis