Distinct charge orders in the planes and chains of ortho-III ordered YBa$_2$Cu$_3$O$_{6+\delta}$ identified by resonant elastic x-ray scattering