Pakistan's Noman Ali has taken a hat-trick on a remarkable first day of the second Test against West Indies as 20 wickets tumbled in Multan.