Static and dynamic magnetic response of spin-glass models with short-range interactions