Masses of light tetraquarks and scalar mesons in the relativistic quark model