Stuart Broad handed England a timely boost by dismissing Kagiso Rabada with the final delivery of the opening day of their Test match to leave South Africa on 277-9.