US President Barack Obama is "optimistic" the climate change problem can be solved, but warns that global warming poses economic and security risks, and must be tackled immediately.