Modulated phases and structural arrest in colloidal systems with competing interactions