South Africa's Aiden Markram was caught out for a superb 136 runs against Australia in the World Test Championship final at Lord's.