South Africa skipper Faf du Plessis hit a half century but that was not enough to take his side home against Bangladesh