Formula One agrees to cut costs