Risk bounds for reservoir computing