Position-space renormalization for systems with weak long-range interactions and the breakdown of hyperscaling