Mozambique's main opposition leader has returned from self-imposed exile as security forces fired tear gas at supporters who gathered to welcome him home.