A near-minimal leptoquark model for reconciling flavour anomalies and generating radiative neutrino masses