UnitedHealth Group has agreed to sell its last South American business Banmedica to Brazilian private equity group Patria Investments for $1 billion.