Edinburgh’s position as the world’s pre-eminent festival city faces challenges from the digital revolution, public investment and city infrastructure, according to a