The broad-based gains have presented investors with a conundrum. While many are uneasy owning assets that appear richly valued or trade at record highs, holding too much cash or an outsize allocation to underperforming stocks has hampered portfolio performance during the recent rally.