Paul Mescal, Joseph Quinn, Barry Keoghan, and Harris Dickinson will star in the Sam Mendes-directed films