League One Bury sign former Arsenal, Liverpool and Stoke winger Jermaine Pennant until the end of the season.