Silverstone has agreed terms with Formula 1 to hold two races on consecutive weekends in July and August, subject to government approval.