Constraints on dark matter self-interaction from the internal density profiles of X-COP galaxy clusters