From an elevated CMD Prompt type the command:
powercfg /energy output c:\users\<your user name>\documents\energy.html
Open the HTML file and see what process, service or app prevented it from sleeping...
You can get additional info user the same command but substitute the /energy with /sleepstudy or /batteryreport