Magnetic Monopoles in the Deconfined Phase of Yang-Mills Theories