Measurement of the branching ratio for the decay K+- ---> pi+- pi0 pi0 with the KLOE detector