SU(N) magnetism in chains of ultracold alkaline-earth-metal atoms: Mott transitions and quantum correlations