Patient in Buckinghamshire hospital was treated in toilet, inquiry hears