Homes belonging to more than half a billion people could be submerged by rising sea levels if the current rate of global warming continues, scientists have said.