Top-order collapses before Hughes, Ibrahim come together in fourth-wicket stand