The global gender gap in the workplace is closing slowly, the World Economic Forum said.