Scotland becomes first UK nation declared illegal to slap children