Wary investors limit their holdings despite market gains