Optimal stomatal drought response shaped by competition for water and hydraulic risk can explain plant trait covariation