Characteristic initial data and wavefront singularities in general relativity