Villarreal have signed Thomas Partey just two days after the 32-year-old was granted bail on rape charges.