Securing In-Memory Processors Against Row Hammering Attacks