Weaker than expected earnings and economic data prompted the markets to reverse course, after opening the day higher on optimism over a Greek deal. The S&P/Case Shiller’s 20-city composite index showed a 1.3 percent drop in home prices last November, a bigger decline than economists expected.