Pittsburgh ranked as most affordable city to buy a home in the world