Which OS? The 'factory settings' within Windows 10 (and 8.1?) or from a recovery partition?
If you've been stuck at 27% for 5 hour, you have a problem. A clean install is one option (and more thorough than a 'reset').
Unfortunately, hanging for that length may be indicative of a larger problem (failed HDD, corrupt OS etc).