Sarfaraz replaces Afridi as Pakistan team captain