Consumer staples, banks did well in Q3 amid broad slowdown