Obama declares support for gay marriage