Apple plans to cut some corporate retail roles after being hit by wave of tech layoffs