Gemini Deep Deep Survey VII: the Mass-Metallicity Relation at z ∼ 0.7