Syrian troops advance in Hama as 24 people killed