Spatial competition constrains resistance to targeted cancer therapy