The president announced the positive test result in the early hours of Friday morning, throwing the election campaign into crisis. His doctor says he is doing “well.”