Steps toward determination of the size and structure of the broad-line region in active galatic nuclei. 8: an intensive HST, IUE, and ground-based study of NGC 5548