UAE markets gain on the first day of Ramadan