Tempered currents and Deligne cohomology of Shimura varieties, with an application to $\mathrm{GSp}_6$