US President Barack Obama has described Sunday morning's gun attack on a gay nightclub in Orlando, Florida, as "an act of terror and an act of hate".