If any of the above or other solution is not working for you then have a look at this link
https://forums.cpanel.net/threads/public_html-is-writable-by-group-error.627391/
Here Cpanel community team member suggest that public_html should have the permission set as 750
This solution worked for me :)