Venezuela's President Nicolás Maduro has won re-election to another six-year term, in a vote marred by an opposition boycott and claims of vote-rigging.