QPR have signed Israel international defender Tal Ben Haim on a short-term contract which runs until the end of the season.