Five Afghan men were hanged on Wednesday for the gang rape of four women despite the United Nations and human rights groups criticising the trial and calling for new president Ashraf Ghani to stay the executions.