Not so long ago, families, businesses and governments were effectively living in a world of free money.