Scotland’s first minister Humza Yousef has stepped down after a series of political missteps, dealing the latest blow to his party’s independence ambitions.