Hoffenheim have snapped up Ghana international Afriyie Acquah from Palermo on a four-and-a-half-year contract.