Two men were arrested after police swooped on a van driving through North Yorkshire and found a stolen electric bicycle inside.