Ex-PM Khan attends court as police storm home