Magnetic charge superselection in the deconfined phase of Yang-Mills theory