Spatial partitioning improves the reliability of biochemical signaling