Bath is often name-dropped as the UK's 'poshest city' - but it has a dark past built on gambling and sex