Water delivery to the TRAPPIST-1 planets