As you have had the phone for less than 1 month and have tried unsuccessfully to use a factory restore to resolve the problem then I suggest the following:
1. Verify the purchase date of the phone as printed on the sales receipt.
2. If the phone is still within the manufacturer's warranty period (should be 12 months from date of purchase), consult the manufacturer's warranty statement contained in the documentation that came with the phone as to what to do to make a claim for a manufacturer's warranty repair or replacement.
If you cannot find the documentation search online for Huawei P8 Lite warranty. The manufacturer's warranty should be for 12 months but as to what to do when making a claim may vary, depending on your location.