The US president says 5,000 troops will leave Afghanistan by May and he will meet Taliban leaders.