Wigan have confirmed the signing of West Ham midfielder Jack Collison on loan for the remainder of the season.