Follow the Mean: controlling flow-matching generative models by shifting endpoint means with reference examples