Potter agrees to become Chelsea head coach