Merkel warns Britain against EU exit