The NSPCC has given parents advice on when to give their child a mobile phone.