Mars’ growth stunted by an early giant planet instability