A “cosy” Great Ayton café that was once the place where Captain James Cook went to school has been sold to new owners.