A modular analogue of Brauer's characterisation of characters