Subject to this chapter and to Section 3651, spouses may agree, in writing, to an immediate separation, and may provide in the agreement for the support of either of them and of their children during the separation or upon the dissolution of their marriage. The mutual consent of the parties is sufficient consideration for the agreement.