South Africa (224/4) bowled out Bangladesh (141) to beat them by 83 runs and clinch the series after David Miller's record-breaking 35-ball hundred in the final T20I.