A Pakistani court has rejected a plea for acquittal from former Prime Minister Imran Khan, who has been held in prison for more than a year in a graft case.