You can either store items in your ship's cargo hold or on companions that accompany you on missions. If you're still running out of space, it's worth upgrading your ship's cargo capacity, or even buying a larger ship if you have enough credits.