Buying powerful laser pens could require a licence in future, the British government has said, amid concerns over the number of attacks on aircraft.