Optimal Targeted Lockdowns in a Multi-Group SIR Model