Ghanaians show democratic mettle in troubled vote