Former BBC news anchor Huw Edwards has been given a suspended prison sentence for receiving indecent images of children on his phone.