A man has been charged in connection with possession of an offensive weapon following a raid at an Edinburgh address.