Palantir was one of the worst-performing stocks in the S&P 500 Monday, as shares extended losses since hitting an all-time high last month.