Turkish President Recep Tayyip Erdogan has declared victory in a constitutional referendum granting him vastly increased executive powers.