US President Donald Trump has been diagnosed with chronic venous insufficiency, the White House has confirmed.