Flock-Formation Control of Multi-Agent Systems using Imperfect Relative Distance Measurements