US social media firm Snap to cut 20% workforce in major restructuring