WhatsApp has alerted users who installed a fake version of its app containing spyware, linked to a targeted surveillance campaign.