As a new exhibition opens at the Barbican in London, Cath Pound explores how cabarets and nightclubs have offered freedom for those on the margins.