Ariana Grande and Dalton Gomez have both agreed not to share any "photos or tapes" from their two-year marriage following their split earlier this year, and they are also forbidden from writing a tell-all book about their former union, according to new legal documents