Japanese shares fell on Wednesday, as Asia closed mixed ahead of the upcoming British vote to decide whether to remain in the EU.