The Nifty recently touched an all-time high. Many indices are also trading above their long-term average valuations. It's time investors took a few defensive measures to protect their portfolios in the event of a correction.