West Ham will offer former striker Carlton Cole a short-term deal, manager Sam Allardyce has confirmed.