EL Doctorow’s Ragtime may be more than 40 years old – and the musical version is celebrating its 21st – but its story is startlingly prescient for today