The US president has been diagnosed with chronic venous insufficiency, according to the White House.