Anatomy of the AGN in NGC 5548: VII. Swift study of obscuration and broadband continuum variability