Brazil’s Totvs buys marketing automation software co RD Gestao for $310 mln