Zaka Ashraf has been reinstated as chairman of the Pakistan Cricket Board to end a legal dispute that has been ongoing since July.