A court in Iran has sentenced Iranian-American journalist Reza Valizadeh to 10 years on prison after convicting him of collaborating with a hostile government.