Going through a divorce? Here’s how to protect your finances