Court allows Nawaz Sharif to go abroad for four weeks