US President Joe Biden has dropped out of the presidential election and instead endorsed US vice-president Kamala Harris to become the Democratic Party's nominee.