A powerful earthquake has killed more than 1,700 people in war-torn Myanmar and neighbouring Thailand and caused widespread damage.