If you’re about to receive a hefty inheritance, think carefully about how you might spend it.