Mexico warns of flood risks as cold front brings heavy rain