A new exhibition explores the intimate relationship between undergarments and society through sex, gender, class and style. Lindsay Baker takes a closer look.