Obama signals support for legalizing medical marijuana