A man has been arrested for possessing an offensive weapon near the home of the former Prince Andrew, UK police say.