Nearly 3,000 people have been evacuated from their homes after Indonesia upgraded the threat posed by a volcano on Sumatra island to the highest possible level.