Former Arsenal goakeeper Wojciech Szczesny, who retired in August, joins Barcelona until the end of the season.