You can leave your Guild at "Guild" > "Manage" > "Leave Guild" tab.
Go to guild menu -> Tap manage at lower left -> Tap leave guild
After leaving a guild, you can join other guild immediately.
However, please refer to that you cannot invest in Guild Research and donate on Guild Resource for 24 hours.