Prime minister is said to be examining how to bring forward plans to spend 3 per cent of UK GDP on military