The SEDIGISM survey: The influence of spiral arms on the molecular gas distribution of the inner Milky Way