Pakistan ex-president in court on graft charges