Warwickshire have signed Pakistan all-rounder Shoaib Malik for this summer's Natwest T20 Blast tournament.