Joe Biden has announced he is withdrawing from the 2024 presidential race - but will continue in post for the rest of his term.