Yangians and cohomological Hall algebras of Higgs sheaves on curves