CNBC's Jim Cramer on Thursday named sectors that have seen major gains recently and warned investors not to buy them while they're hot.