Globalization of partial cohomology of groups