Pirelli agrees new four-year Formula One deal