Algebraic model of formal period maps and Yukawa algebras