Pakistan has hanged four men linked to last December's massacre at an army school which killed more than 150 people, mostly children.