Tech companies such as Apple and Google have been asked by the UK government to block access to naked images on smartphones and other devices for under-18s.