Manchester City manager Pep Guardiola says England goalkeeper Joe Hart can leave the club if he asks for a move.