A council has issued an emergency safety order requiring urgent repairs to an historic hotel within seven days.