Shahid Afridi takes retirement from T20 captaincy