Obama says Boston bombings an act of terrorism