Dhaka has been ranked as the third worst liveable city in the world, while war-torn Damascus in Syria ranked the worst.