UAE visa amnesty sees thousands turn out to legalise stay