High court grants bail to Imran Khan