Warren Buffett once said that you should "look at market fluctuations as your friend rather than your enemy." Here's how to put his advice into action.