President Trump said on Wednesday he would sign an executive order to solve the problem of immigrant families being separated at the US southern border, which has sparked outrage in the United States and abroad.