Static magnetic and ESR spectroscopic properties of the dimer-chain antiferromagnet BiCoPO$_5$