Afridi guides Pakistan to title triumph