They have flocked to stock funds at a pace rarely seen since 2008, but some are warning that shares look expensive historically.