Mechanical feedback promotes bacterial adaptation to antibiotics