Bursa Malaysia ends higher on better external sentiment