The first time this happened I had only done a factory reset through recovery mode WITHOUT wiping out personalized content. So I assumed that was the cause of this issue.
I then performed a full factory reset, wiping out all data and switched it on again, but it was still unable to detect my home network on the set up screen. I then skipped it and most of the set up and went straight to the main menu but it was still unable to detect my home Wifi. I then did a full reset of network configurations on my mobile but nothing happened. Inserted both of SIMs in and it started detecting my home network again.