Papers from the trust which runs Colchester Hospital show patients have been receiving end-of-life care on an A&E ward due to capacity pressures.