UN agency says more than 400,000 flee Mozambique militant attacks