Barack Obama said governments led by women could produce better outcomes, while discussing US political divisions, democracy and the importance of bringing younger people into politics.