There are plenty of undervalued stocks in this market despite the record highs being driven by the tech sector and favored megacaps.