UAE stocks end higher after volatile week