US President Donald Trump has been examined for swelling in his legs and has been diagnosed with chronic venous insufficiency,