Shoaib Malik announces retirement from Test cricket