Games such as Dungeons & Dragons – once seen as the preserve of the uncool – are enjoying a revival.