Tory MP’s claim that officers should carry guns to stop prison violence dismissed as ‘headline-grabbing’