WhatsApp has announced that users in many parts of the world it will begin sharing their data with Facebook, its parent company.