Masses and electroweak properties of light mesons in the relativistic quark model