Resonant and nonresonant processes in attosecond streaking from metals