Police apologise after reprimanding man for being in his front garden