Lancashire have signed Australia Test batsman Usman Khawaja as their overseas player for the remainder of the season.