Addressing the worldwide shortage of affordable housing could cost $16 trillion by 2025, a global consultancy has estimated.