Bad money habits are often shaped by childhood experiences—but we can undo them rather than pass them on to our children.