Bed-bound patients were told to “soil themselves” in a busy A&E department because there were not enough staff to take them to the toilet, according to a new report.