US President Donald Trump says he scored a perfect 30 on his fourth cognitive test, calling for mandatory exams for all presidential candidates.