A young man who sold drugs from a bedroom in his father's home and tried to hide his huge profits by investing in cryptocurrency has been jailed for three years.