Robust Guarantees for Perception-Based Control