In city squares and living rooms, ballrooms and villages, the citizens of the world cheered the election of Barack Obama as US president, increasing hopes that America’s first black commander-in-chief would herald a more balanced, less confrontational America.