The supercar maker and Formula One team plans to layoff 25% of workforce, the vast majority in the UK.