Barack Obama has sent up Donald Trump's presidential ambitions and mocked conspiracy theorists who allege that he was born abroad.