Similar Items: Contagion and volatility with imperfect credit markets