A County Durham dad took his own life in custody after officers failed to conduct a full rub down search, an inquest has heard.