Barack Obama wins election to become 44th US president