Violation of the fluctuation-dissipation relation during the formation of a colloidal glass