Erd˝os–Ko–Rado theorems for permutations and set partitions