Mozilla Foundation has laid off 30% of its employees due to a "relentless onslaught of change" in the tech industry.