A non-disordered glassy model with a tunable interaction range